﻿using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel;

namespace internal_website.Models
{
    public enum DefinedRole
    {
        [Description("audio/basic: μ-law audio at 8 kHz, 1 channel; Defined in RFC 2046")]
        Administrator,
        [Description("audio/L24: 24bit Linear PCM audio at 8–48 kHz, 1-N channels; Defined in RFC 3190")]
        MemberOfTheBoard,
        [Description("audio/mpeg: MP3 or other MPEG audio; Defined in RFC 3003")]
        Musician,
        [Description("audio/mp4: MP4 audio")]
        Guest
    }

    public class UserRole : IUserRole
    {
        #region Constructor

        public UserRole()
        {
            Users = new Collection<User>();
        }

        #endregion

        [Key]
        public int Id { get; set; }
        public bool Active { get; set; }

        public DefinedRole Role { get; set; }

        #region Navigation properties

        public virtual ICollection<User> Users { get; set; }

        #endregion

    }

}